package com.xuzq.bookstore.product.feign;

import com.xuzq.bookstore.common.to.SkuHasStockVo;
import com.xuzq.bookstore.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("bookstore-ware")
public interface WareFeignService {

//    @PostMapping("/ware/waresku/hasStock")
//    R getSkuHasStock(@RequestBody List<Long> skuIds);

    @RequestMapping("/ware/waresku/hasStock")
    List<SkuHasStockVo> getSkuHasStocks(List<Long> longList);

}
